package com.zsummer.demo.cloudseataservice1;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

/**
 * @author zsummer
 * @since 2022/2/16
 */
@Repository
public class OrderDao {

    @Autowired
    private JdbcTemplate jdbcTemplate;

    public void order(String productName, int count) {
        jdbcTemplate.update("insert into order_msg (product_name, order_cnt) VALUES (?, ?)", productName, count);
    }
}
